<?php $control= Yii::app()->getController()->getId();?>
<style type="text/css">
	.accordion-inner li{
		list-style:none;
		margin: 10px 0;
	}
	.accordion-inner li a.btn{
		width: 80%;
		text-align:left; 
	}
</style>
<div class="widget widget-accordion">
					<div class="widget-header">
						<h3>
							<i class="icon-facetime-video"></i> TV Manager
						</h3>					
					</div> <!-- /.widget-header -->
					<div class="widget-content">
						
						<div class="accordion" id="sample-accordion">
				            <div class="accordion-group">
				              <div class="accordion-heading">
				                <a class="accordion-toggle" data-toggle="collapse" data-parent="#sample-accordion" href="#collapseOne">
				                <i class="icon-th"></i>  TV
				                </a>
				                <i class="icon-plus toggle-icon"></i>
				              </div>
				              <div id="collapseOne" class="accordion-body <?php echo  $control=='tv'?'in':''?> collapse">
				                <div class="accordion-inner">
				                	<ul>
				                		<li>
				                			<?php echo CHtml::link('<i class="icon-plus"></i> Create TV',array('/tv/create'),array('class'=>'btn')); ?>
				                		</li>
				                		<li>
				                			<?php echo CHtml::link('<i class="icon-th-list"></i> List TV',array('/tv/admin'),array('class'=>'btn')); ?>
				                		</li>
				                	</ul>
				                </div>
				              </div>
				            </div>
				          </div>					
						
					</div> <!-- /.widget-content -->
					
</div> <!-- /.widget -->